<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of article
 *
 * @author Dmitry
 */
class Controller_Article extends Controller_Action {
  function index() {
    echo "Всі статті.";
  }
  
  function show($id)
  {
    $this->registry->get('view')->set('id',$id);
    $this->registry->get('view')->show('article');
  }
  
  function search()
  {
    $this->registry->get('view')->set('key',$_POST['search']);
    $this->registry->get('view')->show('search');
  }
}

?>
